
/*
 * Util.js contains single functions that do not belong
 * into any specific class/object
 * 
 * Note that util.pressurizeAll() is defined in wrtpressurize.js
 */

var util = {
    el: function(id) {
        return document.getElementById(id);
    },

    log: function(msg) {
        if (console && console.log) {
			console.log(msg);
		} 
	},

    /**
     * @param {Object} context
     * @param {function} func
     * @param {Array} params
     */
    bind: function(context, func, params) {
        return function() {func.apply(context, params);};
    }
}